// 滑动屏幕到一定距离就展开隐藏的状态栏
(function(){
	var navList = $('.logo-nav');
	var sTopHeight = parseInt($(window).height()) / 100 * 55;

	function gunScroll() {
		var winSTop = $(window).scrollTop();
		
		if(winSTop >= sTopHeight){
			navList.addClass('scoll-logo-nav')
		}else{
			if(navList.hasClass('scoll-logo-nav')){
				navList.removeClass('scoll-logo-nav');
			}
		}
	}

	$(window).scroll(function() {
		gunScroll();
	});
})();

(function() {
	var navBotton = $('.nav-botton');
	var navBox = $('.nav-box');
	navBotton.on('click', function() {
		if($(this).hasClass('nav-botton-open')){
			$(this).removeClass('nav-botton-open');
			navBox.removeClass('nav-box-open');
		}else{
			$(this).addClass('nav-botton-open');
			navBox.addClass('nav-box-open');
		}
	});
})();